﻿using Stimulus360.Models.Data;
using System.Collections.Generic;
using Stimulus360.Models.Data.CustomTypes;

namespace Stimulus360.Controllers
{
    /// <summary>
    ///     View Model use for register views
    /// </summary>
    public class NewUserViewModel
    {
        /// <summary>
        ///     User details to be created
        /// </summary>
        public UserProfile User { get; set; }

        /// <summary>
        ///     Interest's of an user
        /// </summary>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Property needs to be set in the controllers")]
        public ICollection<InvestmentCategorySummary> InvestmentCategories { get; set; }

        /// <summary>
        ///     The length of the password to be set
        /// </summary>
        public int MinPasswordLength { get; set; }

        /// <summary>
        ///     String representation of an interest's id stored as pipe "|" seperated during the registration process
        /// </summary>
        public string CategoryIds { get; set; }
    }
}
